lunomobs:register_mob("lunomobs:golem", {
	type = "monster",
	mob_name="GOLEM DE PEDRA",
	hp_max = 10,
	xp_give = 10,
	collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
	visual = "mesh",
	mesh = "mobs_stone_monster.x",
	textures = {"mobs_stone_monster.png"},
	visual_size = {x=3, y=2.6},
	makes_footstep_sound = true,
	view_range = 10,
	walk_velocity = 1.5,
	run_velocity = 3.0,
	damage = 3,
	drops = {
		{name="default:mossycobble", chance=1, min=3, max=5,},
		{name="lunorecipes:magicdust", chance=20, min=1, max=1,}, --É um item genérico oferecido por criaturas encantadas.
	},
	light_resistant = true,
	armor = 80,
	drawtype = "front",
	water_damage = 0,
	lava_damage = 5,
	light_damage = 0,
	attack_type = "dogfight",
	animation = {
		speed_normal = 15,
		speed_run = 15,
		stand_start = 0,
		stand_end = 14,
		walk_start = 15,
		walk_end = 38,
		run_start = 40,
		run_end = 63,
		punch_start = 40,
		punch_end = 63,
	},
	sounds={ random="mobs_sand_stand", attack="sword_2",hit="mobs_sand_hit", die="mobs_shout", },
})

lunomobs:register_spawn("lunomobs:golem", {"default:stone","watershed:stone"}, 3, -1, 7000, 3, 0)

minetest.register_craftitem("lunomobs:golem", {
	description = "Golem",
	groups = { mobs=1 },
	inventory_image = "mob_golem.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:golem")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("golem"	, "lunomobs:golem")
